state: fix shutdown when running in a container (FS#2425)
Applies patch from @mikma [0] to fix Docker shutdown. Added detection to
state.c if running in a container or not.
Tested with a x86/64 Docker image.
Fixes FS#2425
CC: Mikael Magnusson <[email protected]>
CC: Petr Štetiar <[email protected]>
[0]: https://github.com/mikma/lxd-openwrt/blob/master/patches/procd-master/0003-docker-fix-problem-stopping-container.patch
Signed-off-by: Paul Spooren <[email protected]>
Signed-off-by: Hans Dedecker <[email protected]> [coding style aligment]